package com.cjjd.c.feature.home.shoping.evaluate;

import android.view.LayoutInflater;
import android.view.View;

import com.cjjd.c.R;
import com.cjjd.c.base.BaseSwipeRefreshFragment;
import com.cjjd.c.base.MyBaseAdapter;
import com.cjjd.c.bean.HttpResult;

import java.util.ArrayList;
import java.util.List;

import retrofit2.Call;
import retrofit2.Response;

/**
 * ----------------------------------
 * Created by xyd on 2017/9/22.
 * <p/>
 * 描  述：
 * <p/>
 * 修订历史:
 * ----------------------------------
 */

public class EvaluateFragment extends BaseSwipeRefreshFragment {

    @Override
    public Object getTitleString() {
        return null;
    }

    @Override
    public void responseSuccess(Call<HttpResult> call, Response<HttpResult> response) {

    }

    @Override
    protected void initView() {
        View view = LayoutInflater.from(mContext).inflate(R.layout.item_header_shop_evaluate, listBase, false);
        listBase.addHeaderView(view);
        super.initView();
    }

    @Override
    public MyBaseAdapter getAdapter() {
        return new EvaluateAdapter(mContext);
    }

    @Override
    public Call<HttpResult> getCall() {

        List<String> datalist = new ArrayList<>();
        datalist.add("1");
        datalist.add("1");
        setDataList(datalist);

        return null;
    }
}
